/*
 * @Author: wanghongji
 * @Description: 前端剪切组件入口文件
 * @Email: hjm100@126.com
 * @LastEditors: wanghongji
 * @Date: 2021-04-29 14:42:11
 * @LastEditTime: 2021-04-29 17:37:13
 */

import BaseComponent from "./base.component";
import CanvasComponent from "./canvas.component";
import ToolbarComponent from "./toolbar";
import { PostilToolConfig } from "./types/index.type";

class WebPostilTool extends BaseComponent {
  constructor(public config:PostilToolConfig) {
    super('div', 'web-postil-tool');
    console.log(this.component);
    this.init()
  }
  init() {
    this.component.appendChild(new CanvasComponent().component)
    this.component.appendChild(new ToolbarComponent().component)
  }
}

export default new WebPostilTool({
  showTool: ['1111']
}).component